// import axios from "../../../api/gw/axios";
import axios from "axios";
import getData from "./getData";
export default function (params,callback,params2,errFn) {
	let url = window.api.customer_host+"/bulletin/"+params;
    let options = {
        method: "delete",
        url,
        headers: {sessionId: getCookie("sessionId")}
    }
    axios(options).then(data => {
        if (data.status === 200 && data.data.returnCode === 1) {
            //修改成功
            console.log("删除成功");
            // console.log(data.data.data[0]);
            callback && getData(callback,params2);
            // callback && callback(data.data.data[0]);
        } else {
            errFn && errFn(data.data.msg);
        } 
    }).catch(err => {
        console.log(err);
        errFn && errFn();
    });
}
